﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FacadeSingTowerMall;

using DTOSingTowerMall;

namespace MVCSingTowerMall.Controllers
{
    public class PromotionsController : Controller
    {
        //
        // GET: /Promotions/
        PromotionFacade promoFacade;
        public PromotionsController()
        {
            promoFacade = new PromotionFacade();
        }

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Promotion()
        {
            IQueryable<ICampaign> currentPromosInfo = promoFacade.getCurrentPromoDetails();

            return View(currentPromosInfo);
        }
    }
}
